


<!DOCTYPE html>
<html lang="en">

<head>
    
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>在线端口检测,端口扫描,端口开放检查在线工具-postjson</title>
    <meta name="robots" content="all" />
    <meta name="keywords" content="端口检测，端口扫描，端口工具,在线端口扫描,端口开放检查" />
    <meta name="description" content="在线检测、扫描域名或者ip的端口是否开放" />
    <link rel="shortcut icon" href="/static/coolaf/img/favicon.ico">
    
    
    <script src="/static/coolaf/js/ie-emulation-modes-warning.js"></script>

    
    
    
    <link rel="stylesheet" href="/static/coolaf/bootstrap/css/bootstrap.min.css">
    <script src="/static/coolaf/js/jquery.min.js"></script>
    <link rel="stylesheet" href="/static/coolaf/css/offcanvas.css">
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

</head>
<script>
        var showToast = function (msg,option) {
        outTime = 3000;
        if (option&&option.outTime) {
            outTime = option.outTime;
        }
        if (!$(".showtoastresult").html()) {
            html = "<div class='showtoastresult' style='min-width: 50px;width: auto;padding: 10px 20px;font-size: 14px;font-weight: bold;background: rgba(7, 17, 27, 0.66);border-radius: 6px;color: rgb(255, 255, 255);top: 50%;z-index: 1000001;transform: translate3d(-50%, -50%, 0px);position: fixed;top: 50%;left: 50%;-webkit-transform: translate(-50%, -50%);-moz-transform: translate(-50%, -50%);-ms-transform: translate(-50%, -50%);-o-transform: translate(-50%, -50%);transform: translate(-50%, -50%);'></div>";
            $(document.body).append(html);
        }
        $(".showtoastresult").html(msg);    
        $(".showtoastresult").fadeIn("slow").fadeOut(3000);
        return false;
    }
</script>
<style>
    .navbar-brand,.navbar-nav>li>a{
        color:#fdfdfd!important;
    }
    .navbar-nav>li>a:hover{
        color:#ff8839!important;
    }
</style>
<body >
    
    <nav class="navbar navbar-fixed-top navbar-inverse" style='background-color:#2f3b53;'>
        <div class="container" style='width:100%'>
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
                <a class="navbar-brand" href="/">PostJson</a>
            </div>
            <div id="navbar" class="collapse navbar-collapse">
                <ul class="nav navbar-nav">
                    <li class="active"><a href="/">Home</a></li>
                    <li><a href="/tool/ws">ChatRoom</a></li>
                    <li><a href="http://coolaf.com/article/m">文章</a></li>
                    <li><a href="JavaScript:void(0);" id='black1'>夜间模式</a></li>
                    
                    <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">测试工具 <span class="caret"></span></a>
                            <ul class="dropdown-menu">
                                    
                              <li><a href="/tool/gp">在线post请求</a></li>
                              
                              <li><a href="/tool/post">新版在线post请求</a></li>
                              
                              <li><a href="/tool/testing">接口压力测试</a></li>
                              
                              <li><a href="/tool/port">端口检测</a></li>
                              
                              <li><a href="/tool/chattest">在线websocket测试工具</a></li>
                              
                            </ul>
                          </li>
                          
                          
                    <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">JSON相关 <span class="caret"></span></a>
                            <ul class="dropdown-menu">
                                    
                              <li><a href="/tool/json">JSON格式化和还原</a></li>
                              
                              <li><a href="/tool/jsonedit">json编辑</a></li>
                              
                              <li><a href="/tool/jurl">json转url参数</a></li>
                              
                            </ul>
                          </li>
                          
                          
                    <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">加密,解码,转换 <span class="caret"></span></a>
                            <ul class="dropdown-menu">
                                    
                              <li><a href="/tool/ud">urlencode与urldecode转换</a></li>
                              
                              <li><a href="/tool/ud">base64_encode与base64_decode转换</a></li>
                              
                              <li><a href="/tool/ud">md5加密</a></li>
                              
                              <li><a href="/tool/ud">sha1,sha256,sha512</a></li>
                              
                            </ul>
                          </li>
                          
                          
                    <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">其他工具 <span class="caret"></span></a>
                            <ul class="dropdown-menu">
                                    
                              <li><a href="/tool/duibi">两列对比出差异</a></li>
                              
                              <li><a href="/tool/unix">时间戳转换</a></li>
                              
                              <li><a href="/tool/rd">随机字符串或密码生成</a></li>
                              
                              <li><a href="/tool/nslook">在线nslook</a></li>
                              
                              <li><a href="/tool/bimg">在线图片base64编码</a></li>
                              
                              <li><a href="/tool/imgtob">base64信息转图片</a></li>
                              
                              <li><a href="/tool/imgtob">base64信息转图片</a></li>
                              
                              <li><a href="/tool/ff">在线格式化sql,html,json</a></li>
                              
                              <li><a href="/tool/md">在线markdown</a></li>
                              
                              <li><a href="/tool/hzp">汉字转拼音</a></li>
                              
                            </ul>
                          </li>
                          
                          
						<li style='float:right'><a href="javascript:void(0);" id='newpayup'>赞赏</a></li>
                </ul>
                <div style="float:right"> 
				
      <form action="http://zhannei.baidu.com/cse/search" method="get" target="_blank" style="" class="bdcs-search-form  navbar-left" role="search" id="bdcs-search-form"> 
       <div class="form-group">
        <input type="hidden" name="s" value="8291210441307484375" /> 
        <input type="hidden" name="entry" value="1" /> 
     <div action=""  target="_blank" style=""  class="bdcs-search-form navbar-form navbar-left"  role="search" id="bdcs-search-form">  
	<div class="form-group"><input type="hidden" name="gs_l" value="partner.3...9332.9964.1.10387.6.6.0.0.0.0.114.487.5j1.6.0.gsnos%2Cn%3D13...0.600j83810j6..1ac.1.25.partner..15.0.0.OnzuaMkux8w"/>          </div>	
        <input name="q" id="kw" value="" class="bdcs-search-form-input form-control" maxlength="100" autocomplete="off" />
        <input type="submit" class="bdcs-search-form-submit btn btn-default" value="搜索" /> 
       </div> 
       
      </form></div>
            </div>
            
        </div>
        
    </nav>
	<script>
	$("#black1").click(function(){
		var s = $(this).html();
		if (s=="夜间模式") {
			$('body').css("background-color","black");
			$('body').css("opacity","0.7")
			$('body').css("-moz-opacity","0.7")
			$('body').css("filter","alpha(opacity=50)")
			$(this).html('白天模式');
		}else{
			$('body').css("background-color","");
			$('body').css("opacity","")
			$('body').css("-moz-opacity","")
			$('body').css("filter","")
			$(this).html('夜间模式');
		}
	});
	</script>
    
    <div class="container">

        <div class="row row-offcanvas row-offcanvas-right main-contain">
            
            <div class="col-xs-12 col-sm-9">
                
                
              

<h2>在线检测域名或者ip的端口是否开放</h2>
<div style='margin-top:50px'>
<div>
<input type='text' placeholder='输入域名或者ip' value='hao.360.cn' class="form-control" id='ip' style='display:block'/>
<textarea id='port' class="form-control" style='display:block;margin-top:20px;'rows='5'>
80,21,22,23,25,53,110,443,1433,1863,2289,3306,5631,5632,5000,8080,9090
</textarea>
<span style='color:#ccc;display:block;font-size:12px'>多个以","隔开，<span style='color:red'>支持范围书写，例如:1,2,3,10-20,6,100-105,33</span> 一次最多不能超过50个</span>
<button class="btn btn-info" type="button" id="btn" onclick="doSend();" style='margin-top:10px'>端 口 扫 描</button>
</div>
<div id='allout'>

<div  style='line-height:30px;margin-top:30px'>
<table class="table table-hover">
<thead><th>域名</th><th>端口</th><th>端口状态</th><th>ip</th></thead>
<tbody id='output'></tbody>
</table>
</div>
</div>
<div style='margin-top:30px;font-size:14px;'>
<pre style="line-height:30px">
端口号的范围是从1～65535。其中1～1024是被RFC 3232规定好了的，被称作“众所周知的端口”(Well Known Ports)；从1025～65535的端口被称为动态端口（Dynamic Ports），可用来建立与其它主机的会话，也可由用户自定义用途。
一些常见的端口号及其用途如下：
21端口：FTP 文件传输服务
22端口：SSH 端口
23端口：TELNET 终端仿真服务
25端口：SMTP 简单邮件传输服务
53端口：DNS 域名解析服务
80端口：HTTP 超文本传输服务
110端口：POP3 “邮局协议版本3”使用的端口
443端口：HTTPS 加密的超文本传输服务
1433端口：MS SQL*SERVER数据库 默认端口号
1521端口：Oracle数据库服务
1863端口：MSN Messenger的文件传输功能所使用的端口
3306端口：MYSQL 默认端口号
3389端口：Microsoft RDP 微软远程桌面使用的端口
5631端口：Symantec pcAnywhere 远程控制数据传输时使用的端口
5632端口：Symantec pcAnywhere 主控端扫描被控端时使用的端口
5000端口：MS SQL Server使用的端口
8000端口：腾讯QQ
</pre>
</div>
</div>       



<script language="javascript"type="text/javascript">
var hostname=window.location.hostname
var wsUri ="ws://"+hostname+":9010/tool/ajaxport";
var output;
function init() {
    output = document.getElementById("output");
    testWebSocket();
}
function testWebSocket() { websocket = new WebSocket(wsUri);
    websocket.onopen = function(evt) { onOpen(evt) };
    websocket.onclose = function(evt) { onClose(evt) };
    websocket.onmessage = function(evt) { onMessage(evt) };
    websocket.onerror = function(evt) { onError(evt) }; }
    function onOpen(evt) {}
    function onClose(evt) {
		window.setTimeout(testWebSocket,1000);
		 }
    function onMessage(evt) {
       ns=window.JSON.parse(evt.data);
       if (ns.Status==1) {
		status="开放";
		b="color:red";
	  }else if (ns.Status==2){
		status="关闭";	
		b="color:gree";
	  }else if(ns.Status==-1) {
		$("#output").append('<tr><td colspan="3">端口请求最多50个</td></tr>');
	  }else if(ns.Status==-2) {
		$("#output").append('<tr><td colspan="3">请检查端口带'-'的书写是否有误</td></tr>');
	  } 
	   $("#output").append('<tr><td>'+ ns.Host+'</td><td>'+ ns.Port+'</td><td style="'+b+'">'+status+'</td><td>'+ ns.Ip+'</td></tr>');	
	}
    function onError(evt) {
        writeToScreen('<span style="color: red;">ERROR:</span> '+ evt.data);
	}
	function ablebtn(){
		$("#btn").removeAttr("disabled");
	}
    function doSend() {
		$("#output").html('');
	    var ip=$("#ip").val();
		var port=$("#port").val();
		if (ip=='') {
			alert("请先填写发送信息");
			$("#ip").focus();
			return false;
		}
		$("#btn").attr("disabled","disabled");
		setTimeout(ablebtn,5000);
        websocket.send('{"ip":"'+trimStr(ip)+'","port":"'+trimStr(port)+'"}');
		}

    function writeToScreen(message) {
        var pre = document.createElement("p");
        pre.style.wordWrap = "break-word";
        pre.innerHTML = message;
		var d = $("#output");
		var d=d[0];
		$("#output").append(pre);
	}

    window.addEventListener("load", init, false);
    function en(event){
		var evt=evt?evt:(window.event?window.event:null);
        if (evt.keyCode==13){
         doSend()
        }
	}
	
function trimStr(str){return str.replace(/(^\s*)|(\s*$)/g,"");}
</script> 


<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?2db240112a8dbb4d6a2869381e5fbfed";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>



 </div>
  <div class="col-xs-6 col-sm-3 sidebar-offcanvas" id="sidebar">
      <div class="list-group" id='ajaxside'>
	       <a href="/tool/gp" class="list-group-item">在线POST和GET</a>
			<a href="http://postjson.com/tool/json" class="list-group-item sideclass" style='color:red'>json格式化和还原原始串</a>
			<a href="/tool/duibi" style='color:red' class="list-group-item sideclass">两列对比出不同的行</a>
		    <a href="/tool/post" class="list-group-item">新版在线POST和GET</a>
		    <a href="/tool/chattest" class="list-group-item sideclass">在线websocket测试工具</a>
			<a href="/tool/testing" class="list-group-item sideclass">API接口压力测试</a>
			<a href="/tool/md" class="list-group-item sideclass">markdown在线编辑</a>
			<a href="/tool/ff" class="list-group-item sideclass">sql\html\xml美化</a>
		
                <a href="/tool/jurl" class="list-group-item sideclass">json与url互转</a>
			<a href="/tool/formdatatokv" class="list-group-item sideclass">formdata转url,kv</a>
			<a href="/tool/port" class="list-group-item sideclass">端口扫描</a>
			<a href="/tool/nslook" class="list-group-item sideclass">在线nslookup</a>
			<a href="/tool/hzp" class="list-group-item sideclass">汉字转拼音</a>
			<a href="http://note.codebooks.cn/admin/" class="list-group-item sideclass" target='_black'>开源权限管理后台系统</a>
            <a href="/tool/ud" class="list-group-item sideclass">加密、转换</a>
			<a href="/tool/rd" class="list-group-item sideclass">随机字符串</a>
			<a href="/tool/unix" class="list-group-item sideclass">时间戳转换</a>
			<a href="/tool/bimg" class="list-group-item sideclass">图片base64转码</a>
			<a href="/tool/imgtob" class="list-group-item sideclass">base64转成图片</a>
			<a href="/tool/fenci" class="list-group-item sideclass">在线汉语分词</a>
			<a href="https://glot.io/" class="list-group-item" target='_blank'>在线代码运行</a>
			<a href="/run" class="list-group-item sideclass" target='_blank'>代理在线代码运行</a>
      </div>
   <script type="text/javascript">
     
    var cpro_id = "u3153389";
</script>
<script type="text/javascript" src="//cpro.baidustatic.com/cpro/ui/c.js"></script>

<script type="text/javascript" src="//cpro.baidustatic.com/cpro/ui/c.js"></script>
    </div>
	
    </div>
</div>


  <script src="/static/coolaf/bootstrap/js/bootstrap.min.js"></script>
  <script src="/static/coolaf/js/offcanvas.js"></script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?18f18be6e58f13d87192835c8c15fdca";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();
</script>
<script>
try{
　　top.location.hostname;
　　if (top.location.hostname != window.location.hostname) {
　　　　top.location.href =window.location.href;
　　}
}
catch(e){
　　top.location.href = window.location.href;
}
</script>
<script>
$.ajax({
	  url:"/side",
	  type:"GET",
	  dataType:"jsonp",
	  success:function(data){
		
		$(".sideclass").each(function(){
			
		});
	  }
     });
</script>
<a href='/m'>m</a>

<script>
(function(){
    var bp = document.createElement('script');
    var curProtocol = window.location.protocol.split(':')[0];
    if (curProtocol === 'https') {
        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';        
    }
    else {
        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
    }
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
})();
</script>
<script>
$(document).ready(function () {
		$("#newpayup").click(function () {
			$("#payup").show();
		});
		$("#payup").click(function () {
			$(this).hide();
		});
});
</script>
<style>
		.payup {
			display: none;
			position: fixed;
			top: 0px;
			left: 0px;
			width: 100%;
			height: 100%;
			background: rgba(0, 0, 0, 0.6);
			z-index: 6666
		}

		.postpay {
			position: relative;
			float: right;
		}

		.postpay button {
			color: yellow;
			width: 68px;
			height: 50px;
			word-wrap: break-word;
			background-color: hsl(340, 100%, 75%);
			box-shadow: inset rgba(255, 254, 255, 0.6) 0 0.3em .3em, inset rgba(0, 0, 0, 0.15) 0 -0.1em .3em, hsl(340, 70%, 50%) 0 .1em 3px, hsl(340, 80%, 40%) 0 .3em 1px, rgba(0, 0, 0, 0.2) 0 .5em 5px;
			border: none;
			padding-right: 1.2em;
			padding-left: 0.8em;
			border-radius: 3em 1em / 5em 1em;
		}

		.payupimg {
			width: 680px;
			height: 390px;
			margin: 0 auto;
			position: relative;
			top: 256px;
			z-index: 9999;
			background: white;
		}

		.payup img {
			float: left;
			width: 280px;
			height: 280px;
			margin:30px 30px 30px 30px;
		}

		.imgtext {
			width: 330px;
			display: inline-block;
			text-align: center;
			font-size: 20px;
			font-weight: blod;
		}
	</style>
	<div class='payup' id='payup'>
		<span></span>
		<div class='payupimg'>
			<img src="/static/coolaf/img/zfb.png" >
			<img src="/static/coolaf/img/wx.png" >
			<div>
				<span class='imgtext'>支付宝</span>
				<span class='imgtext'>微信</span>
			</div>
		</div>
	</div>
</body>
</html>
